//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.tg.jvm;

import com.tg.base.concurrent.ThreadSleep;

import java.util.ArrayList;
import java.util.concurrent.TimeUnit;

public class HeapOOM {
    public HeapOOM() {
    }

    public static void main(String[] args) {
        ArrayList list = new ArrayList();

        while(true) {
            list.add(new HeapOOM.OOMObject());
            ThreadSleep.invoke(TimeUnit.MILLISECONDS, 50);
        }
    }

    static class OOMObject {
        OOMObject() {
        }
    }
}
